-- This file is part of the Fantasy Grounds Open Foundation Ruleset project. 
-- For the latest information, see http://www.fantasygrounds.com/
--
-- Copyright 2008 SmiteWorks Ltd.
--
-- This file is provided under the Open Game License version 1.0a
-- Refer to the license.html file for the full license text
--
-- All producers of work derived from this material are advised to
-- familiarize themselves with the license, and to take special
-- care in providing the definition of Product Identity (as specified
-- by the OGL) in their products.
--
-- All material submitted to the Open Foundation Ruleset project must
-- contain this notice in a manner applicable to the source file type.


function onInit()
	if not User.isLocal() then
		if User.isHost() then
			PreferenceManager.registerOption("user_gmidentity", "User", "Gamemaster identity", "preferences_entry_string", "GM");
			PreferenceManager.registerOption("images_hexgrid", "Images", "Use hex grid", "preferences_entry_checkbox", false);
		else
		end

		PreferenceManager.registerOption("interface_resetmodifierstack", "Interface", "Reset modifier stack after die roll or drag", "preferences_entry_checkbox", true);
		PreferenceManager.registerOption("images_snaptogrid", "Images", "Snap to grid", "preferences_entry_checkbox", true);
	else
	end

	PreferenceManager.registerOption("interface_closebutton", "Interface", "Show close button on windows", "preferences_entry_checkbox", true);
end
